#include <stdio.h>
#include <stdbool.h>

int main(int argc, char const *argv[])
{

    int i = 0;
    while (i <= 2)
    {
        int j = 0;
        while (j <= 5)
        {
            int k = 0;
            while (k <= 10)
            {
                if (i * 50 + j * 20 + k * 10 == 100)
                {
                    printf("50元有%d个,20元有%d个,10元有%d个\n", i, j, k);
                }
                k++;
            }
            j++;
        }
        i++;
    }

    return 0;
}
